package top.dancun.easuser.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;
import top.dancun.common.entity.RoleEntity;
import top.dancun.common.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author dancun
 * @email message@dancun.top
 * @date 2022-09-05 22:15:48
 */
public interface RoleService extends IService<RoleEntity> {

    PageUtils queryPage(Map<String, Object> params);

    RoleEntity selectById(Long roleId);

    void saveRoleAndMenu(RoleEntity role);

    @Transactional
    void updateRoleAndMenu(RoleEntity role);

    @Transactional
    void deleteRoleAndMenu(RoleEntity role);

    void deleteAllRole(List<Long> asList);
}

